Skip to content

ci: enable Codex review bot on pull requests#250

Merged
amjith merged 1 commit intomainfrom
codex/add-github-workflow-for-codex-review-bot
Feb 15, 2026
Merged

ci: enable Codex review bot on pull requests#250
amjith merged 1 commit intomainfrom
codex/add-github-workflow-for-codex-review-bot

Conversation

@amjith
Copy link
Member

@amjith amjith commented Feb 15, 2026

Motivation

  • Automate a first-pass code review using the Codex GitHub Action to provide concise, actionable feedback on pull requests.
  • Ensure reviews run only for non-draft PRs and that feedback is posted back to the PR as a comment.
  • Keep the workflow scoped and minimally privileged by checking out the PR merge commit and limiting contents permission to read.

Description

  • Add a new workflow file at .github/workflows/codex-review.yml that triggers on pull_request_target events (opened, reopened, synchronize, ready_for_review).
  • The workflow checks out the PR merge ref, pre-fetches base/head refs, then runs openai/codex-action@v1 with a prompt that focuses review on the PR diff and common concerns.
  • The workflow captures Codex output and a follow-up job posts the result as a PR comment using actions/github-script, with the expectation that OPENAI_API_KEY is configured in repository secrets.
  • Add an Unreleased entry to CHANGELOG.md under Internal documenting the new workflow.

Testing

  • Ran git diff --check to validate no whitespace or diff issues and the check passed.

Codex Task

@amjith amjith merged commit 8b6ebc6 into main Feb 15, 2026
6 of 8 checks passed
@amjith amjith deleted the codex/add-github-workflow-for-codex-review-bot branch February 15, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant